
from django.conf.urls import url
from django.contrib.auth.views import login #默认的登录视图函数
from users.views import logout_view,register,user_inf

#处理用户相关的url
urlpatterns = [
    url(r'^login/$',login,{'template_name':'users/login.html'},name="login"),
    url(r'^logout/$',logout_view,name="logout"),
    url(r'^register/$',register,name="register"),
    url(r'^user_inf/(?P<user_id>\d+)/$',user_inf,name="user_inf"),
]